package com.jn.okhttppicasso_demo01;



import android.os.Bundle;
import android.widget.ImageView;
import androidx.appcompat.app.AppCompatActivity;
import com.squareup.picasso.Picasso;

public class ImageDetailActivity extends AppCompatActivity {
    private ImageView ivImageDetail;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_image_detail);

        ivImageDetail = findViewById(R.id.ivImageDetail);

        // 获取传递过来的图片URL
        String imageUrl = getIntent().getStringExtra("IMAGE_URL");
        if (imageUrl != null) {
            Picasso.get().load(imageUrl).into(ivImageDetail);
        }
    }
}